package com.jhhc.baseframework.data.Oj_Base;

import org.easymock.EasyMock;
import org.easymock.IMocksControl;
import org.junit.Rule;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * 进行最简单测试的基类，不包含数据库等其他测试项
 *
 * @author yecq
 */
@RunWith(SpringRunner.class)
@ContextConfiguration(locations = {"classpath:applicationContext.xml"})
public class BaseAlone {

    @Rule
    public ExpectedException expectedEx = ExpectedException.none();

    // mock对象
    protected IMocksControl mocksControl;

    protected BaseAlone() {
        this.mocksControl = EasyMock.createStrictControl();
    }
}
